package com.tg.service.base.order;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

@Service
@Order(2)
public class A5 implements InitializingBean {

    private static final Logger LOGGER = LoggerFactory.getLogger(A5.class);

    @Autowired
    private B5 b5;

    public A5() {
        LOGGER.info("construct:A5");
    }

    public void invoke() {
        LOGGER.info("invoke:A5");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        LOGGER.info("init:A5");
    }
}
